<template>
  <div class="index">
    <img src="../../assets/images/technological_process.jpg" alt srcset />
    <van-button class="index_btn" type="primary" @click="goTest()">立即购买</van-button>
    <p class="user-center" @click="goUserCenter()">
      <van-icon name="contact" />
    </p>
    <img src="../../assets/images/index_bottom.png" alt srcset />
  </div>
</template>

<script>
export default {
  name: "index",
  components: {},
  data() {
    return {
      key: "",
    };
  },
  created() {},
  mounted() {
    
  },
  methods: {
    goTest() {
      this.$router.push({
        name: "test-item-selection",
      });
    },
    goUserCenter() {
      this.$router.push({
        name: "planting-code",
      });
    },
  },
};
</script>

<style scoped>
.index {
  padding-bottom: 50px;
}
.index img {
  width: 100%;
  display: block;
}
.index .index_btn {
  position: fixed;
  width: 84%;
  height: auto;
  bottom: 20px;
  left: 8%;
  background: #39ad97;
  border: none;
  border-radius: 20px;
  box-shadow: 0px 3px 10px rgba(1, 58, 11, 0.3);
}
.user-center {
  position: fixed;
  top: 30px;
  right: 5%;
  width: 60px;
  height: 60px;
  font-size: 30px;
  color: #39ad97;
  text-align: center;
  line-height: 65px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0px 5px 20px rgba(1, 58, 11, 0.2);
}
</style>